<?php
/**
 * 赠送金币记录
 * @return
 * @author yuncran@126.com
 */

namespace app\model;

use app\BaseModel;

class GoldUserLogModel extends  BaseModel
{
    protected $name = 'gold_user_log';

    protected $pk = "id";

    public function user()
    {
        return $this->hasOne(UserModel::class,'id','to_user_id')->bind(['nickname'=>'nickname']);
    }
}